package org.sippr.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Lorra模型，数据和图片通过api从系统获取
 * sd_lorra
 */
@Data
public class SdLorra implements Serializable {
    @NotNull(groups = SdCheckPoints.Update.class)
    private Integer id;
    @NotEmpty(groups = SdCheckPoints.Update.class)
    private String name;

    private String createUser;

    private String updateUser;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String alias;

    private String img;

    private static final long serialVersionUID = 1L;

    public interface Update {
    }
}